<?php
//Global definitions.
$parts = explode(DS, VPATH_BASE);

//Defines.
define('VPATH_ROOT',			implode(DS, $parts));

define('VPATH_SITE',			VPATH_ROOT);
define('VPATH_APP',				VPATH_ROOT.DS.'applications');
define('VPATH_CONF',			VPATH_ROOT.DS.'configs');
define('VPATH_LIB',				VPATH_ROOT.DS.'libraries');
define('VPATH_COM',				VPATH_ROOT.DS.'components');
define('VPATH_MOD',				VPATH_ROOT.DS.'modules');
define('VPATH_PLG',				VPATH_ROOT.DS.'plugins');
define('VPATH_TPL',				VPATH_ROOT.DS.'templates');
define('VPATH_LANG',			VPATH_ROOT.DS.'languages');
define('VPATH_CACHE',			VPATH_ROOT.DS.'cache');

if (empty($APP_NAME))
{
	$APP_NAME = 'default';
}
define('VPATH_MYAPP',				VPATH_APP.DS.$APP_NAME);

define('VPATH_INSTALL',			VPATH_ROOT.DS.'installation');
